package com.xixi.example.provider;

import com.xixi.core.rpc.registry.LocalRegistry;
import com.xixi.core.rpc.server.CustomHttpServer;
import com.xixi.core.rpc.server.VertxHttpServer;
import com.xixi.example.common.service.UserService;

/**
 * @author: zxh
 * @date: 2024/8/20 22:57
 * @description: 简易服务提供者示例
 */
public class EasyProviderExample {

	public static void main(String[] args) {
		// 注册服务
		LocalRegistry.register(UserService.class.getName(), UserServiceImpl.class);

		// 提供服务
		CustomHttpServer httpServer = new VertxHttpServer();
		httpServer.doStart(8080);
	}
}
